public class ConstrutorDetail{
	public static void main(String[] args) {
	Person	p1=new Person ("king",90);
	System.out.println("第一个构造器的使用"+p1.name);
	Person	p2=new Person ("jack");
	System.out.println("第二个构造器的使用"+p2.name);
	}
}

class Person{

	String name;
	int age;

	public Person(String pName,int pAge){
		name = pName;
		age = pAge;
	}
	//构造器的重载
	public Person(String pName){
		name = pName;
	}
}